<html layout:decorate="~{default/layout}" xmlns:layout="http://www.w3.org/1999/xhtml">
<head>
    <script>

    </script>
</head>
<body>
<div layout:fragment="content">
    <div class="main-content-inner">

        <div class="breadcrumbs ace-save-state" id="breadcrumbs">
            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa fa-home home-icon"></i>
                    <a href="#">主页</a>
                </li>
                <li class="active">工程配置</li>
                <li class="active">用户管理</li>
            </ul><!-- /.breadcrumb -->
        </div>

        <div class="main-body">

            <div id="toolbar" class="btn-group btn-group-sm " >

                <a type="button" class="btn btn-primary" data-toggle="modal"
                   href="/project/userManage/user_add" data-target="#modal">新增</a>
                <a type="button" href="/project/userManage/user_edit" class="btn btn-info" data-toggle="modal" data-target="#modal">编辑</a>
                <a type="button" onclick="" class="btn btn-danger">删除</a>
            </div>

            <table id="dataTable" data-url="/project/userManage/user_data" data-page-list=[]  data-striped="true"
                   data-pagination="true" data-page-size="15" data-cache="false" data-toolbar-align="right">

            </table>
            <script>
                //过程报警
                var dataFormat_user = [{
                    checkbox: true
                },{
                    field:'id',
                    title:'id',
                    visible:false
                },{
                    field: 'number',
                    title: '编号',
                    sortable:true
                },{
                    field: 'name',
                    title: '用户名',
                    sortable:true
                },{
                    field: 'password',
                    title: '密码',
                    sortable:true

                }, {
                    field: 'modificationPassword',
                    title: '阈值修改口令',
                    sortable:true
                }, {
                    field: 'type',
                    title: '类型',
                    sortable:true
                }, {
                    field: 'project',
                    title: '权限内项目',
                    sortable:true
                }, {
                    field: 'onloadTime',
                    title: '上次登陆时间',
                    sortable:true
                }, {
                    field: 'createUser',
                    title: '创建者',
                    sortable:true
                }, {
                    field: 'permissionAssignment',
                    title: '权限分配',
                    sortable:true,
                    formatter:function (value,row,index) {
                            return '<input type="checkbox" /><label class=" control-label">监控</label>'+
                                '<input type="checkbox" /><label class=" control-label">报警</label>'+
                        '<input type="checkbox" /><label class=" control-label">诊断</label>'+
                        '<input type="checkbox" /><label class=" control-label">报告</label>';
                    }
                }];
                window.onload = function () {
                    getTable(dataFormat_user, "dataTable");
                };

            </script>
        </div>
    </div>

</div>
</body>
</html>